package org.example.elm_xiangmu.service.impl;


import org.example.elm_xiangmu.mapper.FoodMapper;
import org.example.elm_xiangmu.po.Food;
import org.example.elm_xiangmu.service.FoodService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FoodServiceImpl  implements FoodService {
    @Autowired
    FoodMapper foodMapper;
    @Override
    public List<Food> list(Integer businessId) {
        return foodMapper.list(businessId);
    }

    @Override
    public Food getByFoodId(Integer foodId) {
       return foodMapper.getByFoodId(foodId);
    }
}
